package org.wm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.wm.domain.SysDictData;
import org.wm.domain.SysDictType;

import java.util.List;

/**
 * 字典 业务层接口
 * (已按照 Mybatis-Plus 混合模式进行改造)
 */
public interface ISysDictTypeService extends IService<SysDictType> {

    IPage<SysDictType> selectDictTypePage(Page<SysDictType> page, SysDictType dictType);

    List<SysDictType> selectDictTypeAll();

    List<SysDictData> selectDictDataByType(String dictType);

    SysDictType selectDictTypeByType(String dictType);

    void deleteDictTypeByIds(Long[] dictIds);

    void loadingDictCache();

    void clearDictCache();

    void resetDictCache();

    boolean insertDictType(SysDictType dict);

    boolean updateDictType(SysDictType dict);

    String checkDictTypeUnique(SysDictType dict);
}